package com.ant.storage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author melon
 * @since 2022-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("goods_pool_commodity")
@ApiModel(value="GoodsPoolCommodity对象", description="")
public class GoodsPoolCommodity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "申请池id")
    @TableField("goods_pool_id")
    private Integer goodsPoolId;

    @ApiModelProperty(value = "商品id")
    @TableField("commodity_id")
    private Integer commodityId;

    @ApiModelProperty(value = "申请采购数量")
    @TableField("commodity_amount")
    private BigDecimal commodityAmount;

    @ApiModelProperty(value = "实际入库数量")
    @TableField("commodity_number")
    private BigDecimal commodityNumber;

    @ApiModelProperty(value = "参考连接")
    @TableField("commodity_links")
    private String commodityLinks;

    @ApiModelProperty(value = "物品单价")
    @TableField("commodity_price")
    private BigDecimal commodityPrice;

    @ApiModelProperty(value = "支付类型")
    @TableField("pay_type")
    private Integer payType;


    @ApiModelProperty(value = "采购渠道")
    @TableField("channel")
    private Integer channel;
}
